package com.learn.springlearn;

import com.learn.springlearn.config.SpringContextUtil;
import com.learn.springlearn.dao.UserMapper;
import com.rabbitmq.tools.json.JSONUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

import java.util.Map;
import java.util.concurrent.Executor;

@SpringBootApplication
@EnableScheduling
@EnableCaching
@EnableAsync
@MapperScan(basePackages = {"com.learn.springlearn.dao"})
public class SpringLearnApplication {



    public static void main(String[] args) {
        SpringApplication.run(SpringLearnApplication.class, args);
//        Map<String, Executor> beansOfType = SpringContextUtil.getApplicationContext().getBeansOfType(Executor.class);
//        beansOfType.forEach((key,value)->{
//            System.out.println(key + ":" +value);
//        });

    }

}
